/**
 * lmabbe api 封装
 *
 * @Author:    lmabbe
 * @Date:      2025-07-06 15:20:39
 * @Copyright  lmabbe
 */
import { getRequest, postRequest } from '/@/lib/axios';

export const fixedReplacementMaterialApi = {
  /**
   * 分页查询  @author  lmabbe
   */
  queryPage: (param) => {
    return postRequest('/fixedReplacementMaterial/queryPage', param);
  },

  /**
   * 增加  @author  lmabbe
   */
  add: (param) => {
    return postRequest('/fixedReplacementMaterial/add', param);
  },

  /**
   * 修改  @author  lmabbe
   */
  update: (param) => {
    return postRequest('/fixedReplacementMaterial/update', param);
  },

  /**
   * 删除  @author  lmabbe
   */
  delete: (id) => {
    return getRequest(`/fixedReplacementMaterial/delete/${id}`);
  },

  /**
   * 批量删除  @author  lmabbe
   */
  batchDelete: (idList) => {
    return postRequest('/fixedReplacementMaterial/batchDelete', idList);
  },

  backShow: (materialCode, circleFlag) => {
    return getRequest(`/fixedReplacementMaterial/backShow/${materialCode}?circleFlag=${circleFlag}`);
  },
};
